//
//  NSString+KBJSONSerializing.m
//  ZhuShou
//
//  Created by Dejun Liu on 15/10/2.
//  Copyright (c) 2015年 jw. All rights reserved.
//

#import "NSString+KBJSONSerializing.h"

@implementation NSString (KBJSONSerializing)

- (id)KBJSONObject

{
    
    NSError* error = nil;
    
    id object = [NSJSONSerialization JSONObjectWithData:[self dataUsingEncoding:NSUTF8StringEncoding]
                 
                                                options:kNilOptions
                 
                                                  error:&error];
    
    if (error != nil) {
        
        NSLog(@"NSString JSONObject error: %@", [error localizedDescription]);
        
    }
    
    return object;
    
}

@end
